<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/join/getList" method="post">
        <input type="hidden" name="pageSize" value="${model.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
        <input TYPE="hidden" name="siteId" value="${session.SysUser.siteId!}">
        <div class="bjui-searchBar">
            <label>状态:</label>
            <select name="status" data-toggle="selectpicker">
                @if(isEmpty(pojo.status)){
                <option value="" selected>所有</option>
                <option value="0"> 未联系 </option>
                <option value="1"> 已联系 </option>
                @}else if(pojo.status == "0"){
                <option value="">所有</option>
                <option value="0" selected> 未联系 </option>
                <option value="1"> 已联系 </option>
                @}else if(pojo.status == "1"){
                <option value="">所有</option>
                <option value="0"> 未联系 </option>
                <option value="1" selected> 已联系 </option>
                @}
            </select>
            <button type="submit" class="btn-default" id="refresh" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            &nbsp;
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="${ctxPath}/join/excel?book1.xls" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？">导出<span style="color: green;">当前页</span></a></li>
                        <li><a href="${ctxPath}/join/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids">删除<font COLOR="#ff6347">选中</font>行</a></li>
                        <li><a href="${ctxPath}/join/updateStatus?ids=${quote.quoteId!}" data-toggle="doajaxchecked" data-callback="refresh" data-confirm-msg="批量修改状态" data-idname="ids" data-group="ids">办理<font COLOR="blue">选中</font>行</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
        <tr>
            <th align="center" width="35">编号</th>
            <th align="center" width="70">用户姓名</th>
            <th align="center" width="70">所在城市</th>
            <th align="center" width="70">电话</th>
            <th align="center" width="70">客户来源</th>
            <th align="center" width="70">客户留言</th>
            <!--<th align="center" width="80">搜索关键字</th>-->
            <th align="center" width="70">时间</th>
            <th align="center" width="30">站点ID</th>
            <th align="center" width="70">所属站点</th>
            <th align="center" width="70">状态</th>
            <th align="center" width="26" ><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            <th align="center" width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        @for(quote in quoteList.list){
        <tr data-id="${quoteLP.index}">
            <td align="center">${quote.quoteId!}</td>
            <td align="center">${quote.customerName!,xss}</td>
            <td align="center">${quote.city!"N/A",xss}</td>
            <td align="center">${quote.customerPhone!"N/A",xss}</td>
            <td align="center">${quote.customerSource!"N/A",xss}</td>
            <td align="center">${quote.customerMessage!"N/A",xss}</td>
            <!--<td align="center">${quote.searchKey!"N/A",xss}</td>-->
            <td align="center">${quote.createTime!"N/A",dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
            <td align="center">${quote.siteId!"N/A",xss}</td>
            <td align="center">${quote.siteName!"N/A",xss}</td>
            @if(quote.status == "0"){
            <td align="center" style="color: red">未联系</td>
            @}else {
            <td align="center" style="color: green">已联系</td>
            @}
            <td  align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="${quote.quoteId!}"></td>
            <td  align="center">
                <!--<a href="${ctxPath}/quote/saveQuote?id=${quote.quoteId!}" class="btn btn-green"  data-toggle="dialog" title="编辑用户" data-maxable="false" data-resizable="false"  data-width="650" data-height="600" data-id="edit-quote-tab"  data-title="编辑用户">编辑</a>-->
                @if(quote.status == "0"){
                <a href="${ctxPath}/join/updateStatus?ids=${quote.quoteId!}" class="btn btn-blue" data-callback="refresh" data-toggle="doajax" data-confirm-msg="确定要办理该行信息吗？" title="办理">办理</a>
                <a href="${ctxPath}/join/delete?ids=${quote.quoteId!}" class="btn btn-red" data-toggle="doajax" title="删除用户" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                @}else {
                <a href="${ctxPath}/join/delete?ids=${quote.quoteId!}" class="btn btn-red" data-toggle="doajax" title="删除用户" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                @}
            </td>
        </tr>
        @}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 ${quoteList.total!} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="${quoteList.total!}" data-page-size="30" data-page-current="1">
    </div>
</div>
<script type="text/javascript">
    function refresh() {
        $("#refresh").click();
    }
</script>